<?php
#+------------------------------------------------------------------
#| 普通的。
#+------------------------------------------------------------------
#| Author:Janmas Cromwell <janmas-cromwell@outlook.com>
#+------------------------------------------------------------------
namespace form\element\form\traits;

trait Append
{
    protected $append;

    public function append(string $append = '')
    {
        $this->append = $append;
        return $this;
    }

    protected function getAppend(): string
    {
        return empty($this->append) ? '' : <<<HTML

<div class="input-group-append">
    <div class="input-group-text">$this->append</div>
</div>
HTML;
    }
}